package com.example.demo.service.vip;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.domain.tovip.Tovip;
import com.example.demo.domain.vip.Vip;
import com.example.demo.mapper.vip.VipMapper;
import com.example.demo.mapper.tovip.TovipMapper;

@Service("vipService")
public class VipServiceImpl implements VipService{
	@Autowired 
	VipMapper vipMapper;
	@Autowired 
	TovipMapper tovipMapper;

	@Override
	public int deleteByPrimaryKey(Integer vip_id) {
		// TODO Auto-generated method stub
		return this.deleteByPrimaryKey(vip_id);
	}

	@Override
	public int insert(Vip record) {
		// TODO Auto-generated method stub
		return this.vipMapper.insert(record);
	}

	@Override
	public int insertSelective(Vip record) {
		// TODO Auto-generated method stub
		return this.vipMapper.insertSelective(record);
	}

	@Override
	public Vip selectByPrimaryKey(Integer vip_id) {
		// TODO Auto-generated method stub
		return this.vipMapper.selectByPrimaryKey(vip_id);
	}

	@Override
	public int updateByPrimaryKeySelective(Vip record) {
		// TODO Auto-generated method stub
		return this.vipMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Vip record) {
		// TODO Auto-generated method stub
		return this.vipMapper.updateByPrimaryKey(record);
	}

/*	@Override
	public List<Vip> selectVipList(Vip vip) {
		// TODO Auto-generated method stub
		return this.vipMapper.selectVipList(vip);
	}
*/

	@Override
	public int deleteVipByIds(String[] vipIds) {
		// TODO 自动生成的方法存根
		return this.vipMapper.deleteVipByIds(vipIds);
	}
	@Override
	public int selectCountByTovipId(Integer id) {
		// TODO Auto-generated method stub
		return this.tovipMapper.selectCountByTovipId(id);
	}
	@Override
	public List<Tovip> selectTovipName() {
		// TODO Auto-generated method stub
		return this.tovipMapper.selectTovipName();
	}

	@Override
	public List<Vip> selectVipList(Vip vip) {
		// TODO 自动生成的方法存根
		return this.vipMapper.selectVipList(vip);
	}
	@Override
	public Vip selectVip(Vip vip) {
		// TODO Auto-generated method stub
		return this.vipMapper.selectVip(vip);
	}



	

}
